/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package memory;

import java.text.Collator;

/**
 *
 * @author Oscar
 */
public class Carta implements Comparable<Carta>{
    
    private String ruta;

    public Carta(String ruta) {
        this.ruta = ruta;
    }

    public String getRuta() {
        return ruta;
    }

    @Override
    public int compareTo(Carta c) {
        int devolver = 0;
        Collator co = Collator.getInstance();
        co.setStrength(Collator.TERTIARY);
        
        if(co.compare(this.ruta, c.getRuta()) != 0){
            
            devolver = co.compare(this.ruta, c.getRuta());
        }
        return devolver;
    }   
    
}
